package uk.ac.cam.cl.projectcharlie2010.game.player;

import uk.ac.cam.cl.projectcharlie2010.clients.desktop.controller.DesktopController;




public class PlayerHuman extends Player {

  private String name;
  
  
  @Override
  public PlayerHuman clone() throws CloneNotSupportedException {
    PlayerHuman result = (PlayerHuman) super.clone();
    return result;
  }
  
  
  public PlayerHuman(String name) {
    this.name = name;
  }

  @Override
  public String getPlayerName() {
    return name;
  }


@Override
public void setActive(boolean active) {
	if (active) {
		System.out.println("openened interface - GUI player active");
		DesktopController.getInstance().getDesktop().openInterface();
	} else {
		System.out.println("closed interface - GUI player inactive");
		DesktopController.getInstance().getDesktop().closeInterface();
	}
}


@Override
public void kill() {
	//Don't think this has to do anything
	//verify that that is the case
}

}
